FROM centos:7
MAINTAINER shenzizai<shenzizai@foxmail.com>

RUN mkdir "/usr/local/java"

ADD jdk-11.0.16.1_linux-x64_bin.tar.gz /usr/local/java/

ENV JAVA_HOME /usr/local/java/jdk-11.0.16.1
ENV PATH $JAVA_HOME/bin:$PATH

ADD enjoy-village-life-1.0-SNAPSHOT.jar village.jar
ENTRYPOINT ["java","-jar","/village.jar"]
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone